package com.jd.cmdb.tsc.service;

import com.jd.cmdb.tsc.dao.TaskLogDao;
import com.jd.cmdb.tsc.entity.TaskLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by tianzhengguo on 2016/1/12.
 */
@Service
public class TaskLogServiceImpl implements TaskLogService {

    private static final Logger logger = LoggerFactory.getLogger(TaskLogServiceImpl.class);

    @Resource
    private TaskLogDao taskLogDao;

    public List<TaskLog> selAllTaskLogs() throws Exception {
        return null;
    }

    public TaskLog selTaskLog(String taskId) throws Exception {
        return null;
    }

    public List<TaskLog> selTaskLogs(String taskId) {
        return null;
    }

    @Transactional
    public int addTaskLog(TaskLog log) throws Exception {
        return taskLogDao.addTaskLog(log);
    }

}
